package com.nantian;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
import org.springframework.web.bind.annotation.CrossOrigin;

@SpringBootApplication
@EnableElasticsearchRepositories("com.nantian.esdao")
@EnableMongoRepositories("com.nantian.mongdao")
@CrossOrigin
public class Esandmonapplication {
    public static void main(String[] args) {
        SpringApplication.run(Esandmonapplication.class);
    }
}
